﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="Winwise.WebConfig" Location="CommandUI.Ribbon">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.WebApp.Groups._children">
          <Group Id="Ribbon.WebApp.Winwise" Sequence="200" Template="Ribbon.Templates.Flexible2" Title="Winwise" >
            <Controls Id="Ribbon.WebApp.Winwise.Controls" >
              <Button
                Id="Ribbon.WebApp.Winwise.ManageCustomWebConfig"
                Sequence="10"
                Command="Ribbon.WebApp.Winwise.ManageCustomWebConfigButton.Command"
                Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-144" Image16by16Left="0"
                Image32by32="/_layouts/images/Winwise.SPWebConfig.UI/logo_winwise_32.png"
                LabelText="Manage Modif web.config"
                ToolTipTitle="Manage Modif web.config"
                ToolTipDescription="Manage Modif web.config"
                TemplateAlias="o2"/>
            </Controls>
          </Group>
        </CommandUIDefinition>
        <CommandUIDefinition Location="Ribbon.WebApp.Scaling._children">
          <MaxSize Id="Ribbon.WebApp.Scaling.Winwise.MaxSize" Sequence="20" GroupId="Ribbon.WebApp.Winwise" Size="LargeLarge" />
        </CommandUIDefinition>
      </CommandUIDefinitions>

      <CommandUIHandlers>
        <CommandUIHandler
          Command="Ribbon.WebApp.Winwise.ManageCustomWebConfigButton.Command"
          CommandAction="javascript:SP.UI.Admin.WebApplicationPageComponent.navigate('Winwise.SPWebConfig/ManageWebConfigModif.aspx?WebApplicationId=', true, true);"
          EnabledScript="javascript:SP.UI.Admin.WebApplicationPageComponent.isEnabled(48);" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>
